<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <link href="../css/home.css" type="text/css" rel="stylesheet"/>
    <script charset="UTF-8" language="javascript"  type="text/javascript"  src="../js/case.js"></script>
    <script charset="UTF-8" language="javascript"  type="text/javascript"  src="../js/home.js"></script>
    <link href="../css/bootstrap3.3.6.min.css" rel="stylesheet">
    <script src="../js/jquery2.1.1.min.js"></script>
    <script src="../js/bootstrap.min.js"></script>
</head>
<body onload="loadCasePageData()">
    <div class="bottom">
        <div class="filter">
            <div >
                <label >所属项目:</label>
                <select name="project" id="project" title="所属项目" onchange=""></select>
            </div>

            <div >
                <label for="words" >关键字:</label>
                <input id="words" type="text"/>
            </div>

            <div style="float: right">
                <button  title="" onclick="showRunLink()">生成链接</button>
            </div>
            <div style="float: right">
                <button  title="" onclick="testAllReport()">所有记录</button>
            </div>
            <div style="float: right">
                <button  title="" onclick="runAll()">全部执行</button>
            </div>
            <div style="float: right">
                <button  title="" onclick="controlTopDivCase('createCase', 'open', '添加用例')">新建</button>
            </div>
            <div style="float: right">
                <button  title="" onclick="loadCases()">查询</button>
            </div>
        </div>
        <div class="content">
            <table id="caseList" border="1" style="border-collapse: collapse; width: 100%; text-align: left">
                <tbody>
                <tr>
                    <th style="width: 80px">项目名</th>
                    <th>用例名</th>
                    <th>用例说明</th>
                    <th style="width: 60px">文件名</th>
                    <th style="width: 60px" title="选中的会跳过，没有选中会执行。只针对全部执行">是否跳过</th>
                    <th style="width: 165px">操作</th>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
    <div class="topDiv1000" id="testResult" style="display: none">
        <div class="topDiv1001" style="width: 900px; margin-left: 300px">
            <div style="float: left; width: 100%">
                <label class="topDivTitle"></label>
                <label  style="float: right; cursor: pointer;" onclick="controlTopDivCase('testResult', 'close', '')">X</label>
            </div>
            <div class="filter" style="background-color: transparent">
                <div style="margin-left: 30px;">
                    <label >选择日期:</label>
                    <input name="date" id="date" title="选择日期">
                </div>
                <div style="margin-left: 30px;">
                    <label >选择批次:</label>
                    <input name="batchNo" id="batchNo" title="batchNo">
                </div>
                <div style="float: right">
                    <button  title="" onclick="loadResultData()">查询</button>
                </div>
            </div>
            <div id="resultList" style="width: 100%; min-height: 550px">
                <div style="margin-left: 20px"></div>
            </div>
            <div style="padding-left: 35%; margin: 20px 0;">
                <button id="empListP" class="page"><</button>
                <input id="empListC" class="page" type="text" title="" style="" value="1"/>
                <button id="empListGO" class="page">go</button>
                <button id="empListN" class="page">></button>
                <span class="page">共</span>
                <span id="empListPageCount" class="page"></span>
                <span class="page">页</span>
            </div>
        </div>
    </div>
    <div class="topDiv1000" id="createCase" style="display: none;">
        <div class="topDiv1001 api">
            <div style="width: 100%">
                <label class="topDivTitle" id="topDivTitle"></label>
                <label class="close" onclick="controlTopDivCase('createCase', 'close', '')">X</label>
            </div>
            <div style="width: 100%; padding: 0 20px 0 20px; text-align: center">
                <div id="caseId" style="display: none;"></div>
                <div>
                    <label>项目名称:</label>
                    <select name="topDivProjects" id="topDivProjects" title="所属项目" onchange=""></select>
                </div>
                <div>
                    <label>脚本名:</label>
                    <input id="scriptName" placeholder="">
                </div>
                <div>
                    <label>用例名称:</label>
                    <textarea id="caseName" placeholder=""></textarea>
                </div>
                <div>
                    <label>用例说明:</label>
                    <textarea id="describe" placeholder=""></textarea>
                </div>
                <button class="topDivSaveButton" id="saveButton">保存</button>
            </div>

        </div>
    </div>
</body>
</html>